home *** CD-ROM | disk | FTP | other *** search
/ Chip: Hang es video / CHIP_ZENESZERKESZTO_2005.ISO / audio_3 / visual / robotfunk / setup.exe / {app} / main.dxr / Internal_254.ls < prev    next >
Encoding:
Text File  |  2003-11-19  |  401 b   |  20 lines

  1. property spriteNum
  2. global joystick, joy1
  3.  
  4. on beginSprite
  5.   if the platform contains "mac" then
  6.     sprite(spriteNum).visible = 0
  7.     sprite(spriteNum).scriptInstanceList = []
  8.   else
  9.     joystick.useJoy(1)
  10.     joy1 = [127, 127, 127]
  11.   end if
  12. end
  13.  
  14. on exitFrame me
  15.   B = joystick.button(1)
  16.   joy1[1] = joystick.xPos() / 256
  17.   joy1[2] = 256 - (joystick.yPos() / 256)
  18.   joy1[3] = joystick.zPos() / 256
  19. end
  20.